package com.stenio.fancat.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 活动表实体类
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("fc_activity")
public class Activity extends BaseEntity {

	/** 序列化ID */
	private static final long serialVersionUID = -3847940758887973696L;
	/** 自增主键 */
	@TableId(value = "act_id", type = IdType.AUTO)
	private Integer actId;
	/** 活动开始时间 **/
	@TableField("begin_time")
	private Date beginTime;
	/** 活动结束时间 **/
	@TableField("end_time")
	private Date endTime;
	/** 用户Id **/
	@TableField("user_id")
	private Integer userId;
	/** 活动类型Id **/
	@TableField("act_type_id")
	private Integer actTypeId;
	/** 活动类型名称 **/
	@TableField("publish_type")
	private String publishType;
	/** 活动标题 **/
	@TableField("publish_title")
	private String publishTitle;
	/** 品牌Id **/
	@TableField("brand_id")
	private Integer brandId;
	/** 品牌名称 **/
	@TableField("brand_name")
	private String brandName;
	/** 活动原URL **/
	@TableField("article_address")
	private String articleAddress;
	/** 活动URL转换后的URL **/
	@TableField("transform_address")
	private String transformAddress;
	/** jsoup抓取后的url，保存到了阿里云静态资源库OSS中 **/
	@TableField("grab_address")
	private String grabAddress;
	/** 发布状态 0未发布,1已发布,2已取消 **/
	@TableField("release_state")
	private String releaseState;
	/** 奖励总值 **/
	@TableField("totle_candy")
	private Integer totleCandy;
	/** 每次点击奖励金额 **/
	@TableField("tap_candy")
	private Integer tapCandy;
	/** 每次转发奖励金额 **/
	@TableField("resend_candy")
	private Integer resendCandy;
	/** 1为最新，2为最热 **/
	@TableField(exist = false)
	private String channelId;
	/** 当前页 **/
	@TableField(exist = false)
	private Integer currentPageNo;
	/** 每页条数 **/
	@TableField(exist = false)
	private Integer pageSize;

	public static final String ACT_ID = "act_id";
	public static final String BRAND_ID = "brand_id";
	public static final String TRANSFORM_ADDRESS = "transform_address";
	public static final String USER_ID = "user_id";

}